<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:icecore="http://www.icefaces.org/icefaces/core"
	xmlns:ice="http://www.icesoft.com/icefaces/component"
	xmlns:ace="http://www.icefaces.org/icefaces/components">
<h:head>
	<title>inBOtta</title>
	<ice:outputStyle href="../css/woodstock/woodstock.css" rel="stylesheet" type="text/css" />
</h:head>
<h:body>
	<h:form id="insLuogo" >

		<ice:outputText value="#{messaggioBean.messaggio}" />

		<ace:pushButton value="Annulla Inserimento" immediate="true" action="gestione"/>

		<ice:portlet>
			<ice:dataTable
                    rows="6"
                    id="slider"
                    value="#{gestioneBean.sliders}"
                    var="testo">
                    
                  <!-- Id -->
                    <ice:column>
                        <f:facet name="header">
                            <ice:outputText value="Id"/>
                        </f:facet>
						<ice:outputText value="#{testo.id}" />		
                    </ice:column>               
                    
                  <!-- Testo1 -->
                    <ice:column>
                        <f:facet name="header">
                            <ice:outputText value="Testo1"/>
                        </f:facet>
						<ice:outputText value="#{testo.uno}" />		
                    </ice:column>
                    
                  <!-- Testo2 -->
                    <ice:column>
                        <f:facet name="header">
                            <ice:outputText value="Testo2"/>
                        </f:facet>
						<ice:outputText value="#{testo.due}" />		
                    </ice:column>

                  <!-- Testo3 -->
                    <ice:column>
                        <f:facet name="header">
                            <ice:outputText value="Testo3"/>
                        </f:facet>
						<ice:outputText value="#{testo.tre}" />		
                    </ice:column>

                    <!-- Foto -->
                    <ice:column>
                        <f:facet name="header">
                            <ice:outputText value="Foto" />
                        </f:facet>
                        <ice:graphicImage style="height: 80px; width: 140px;" url="../images/slide/#{testo.url}"/>
                    </ice:column>

                    <ice:column>
                        <f:facet name="header">
                        </f:facet>
					<ace:pushButton  value="Modifica" actionListener="#{gestioneBean.modSliderListener}" action="modSlider?faces-redirect=true" ><f:attribute name="ident"  value="#{testo}"/></ace:pushButton>
                    </ice:column>  
                  
					
			</ice:dataTable>
     
		</ice:portlet>
		
		
		
	</h:form>
</h:body>
</html>
